/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dale2507.gates.events;

import dale2507.gates.gate.Gate;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

/**
 *
 * @author Dale
 */
public class GateTravelEvent extends Event {
    
    private static final HandlerList handlers = new HandlerList();
    
    private Gate source;
    private Gate dest;
    private Entity entity;
 
    public GateTravelEvent(Gate source, Gate dest, Entity entity) {
        this.source = source;
        this.dest = dest;
        this.entity = entity;
    }
 
    @Override
    public HandlerList getHandlers() {
        return handlers;
    }
    
    public static HandlerList getHandlerList() {
        return handlers;
    }

    public Gate getSource() {
        return source;
    }
    
    public Gate getDestination() {
        return dest;
    }

    public Entity getEntity() {
        return entity;
    }
}
